package io.linfeng.modules.app.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 用户举报
 * 
 * @author linfeng
 * @email 3582996245@qq.com
 * @date 2022-09-01 12:55:12
 */
@Data
@ApiModel(value = "用户举报请求体")
public class ReportAddForm implements Serializable {
	private static final long serialVersionUID = 1L;


	/**
	 * 文件
	 */
	@ApiModelProperty(value = "举报图片路径列表",required = true)
	private List<String> media;
	/**
	 * 描述
	 */
	@Length(max = 400, message = "内容不能超过400个字符")
	@NotBlank(message = "参数不能为空")
	@ApiModelProperty(value = "举报内容描述",required = true)
	private String content;

	/**
	 * 类型1帖子 2评论 3用户 4圈子
	 */
	@NotNull(message = "无分类参数")
	@ApiModelProperty(value = "举报分类id:1帖子 2评论 3用户 4圈子",required = true)
	private Integer cateId;

	/**
	 * 关联id
	 */
	@ApiModelProperty(value = "关联id")
	private Integer linkId;


}
